import argparse
import sys

def get_parse():
    parser=argparse.ArgumentParser()
    parser.add_argument("-base",default="base",type=str, required=True,
                        help="first base help text")
    args = parser.parse_args()
    return args


if __name__ == '__main__':
    sys.argv.append("-base")
    sys.argv.append("insert")

    args=get_parse()
    print(args)
    print(args.__dict__)